﻿@{
    var lst = Model.Items as IEnumerable<dynamic>;
    if(lst.Any())
    {
        int idx = 0;
        <ul class="locales">
        @foreach(string i in lst.Select(x => JDM.String(x.Code)))
        {
            <li><a href="@Url.Action(Loc.Act("Home").Ctrl("Static").NoArea().Localized(i))" class="@(i == JDM.String(Svc.Localization.Code) ? "current" : String.Empty )">@i</a></li>
            if(idx < lst.Count() - 1)
            {
                <li class="separator">&middot;</li>
            }
            idx++;
        }
        </ul>
    }
}